/**
 * filecomment: 
 * filename: StrUtils.java
 * author: shangpan
 * date: Aug 5, 2018
 */

/**
 * 
 * @author shangpan
 * @since Aug 5, 2018
 */
package common.utils;

import java.util.UUID;

/**
 * 字符串常用操作封装
 * 
 * @author shangpan
 * @since Aug 5, 2018
 */
public class StrUtils {
	
	/**
	 * uuid32
	 * @return String
	 */
	public static String uuid32() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}
	
	/**
	 * obj2Str
	 * @param obj Object
	 * @return String, "null" or obj.toString()
	 */
	public static String obj2Str(Object obj) {
		return String.valueOf(obj);
	}
	
	
	
	
	
	private StrUtils() {}
}